package org.example.controller;

import org.example.domain.Book;
import org.example.domain.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

public interface BookController {

//    ResponseResult getAllBook();

    ResponseResult DeleteBook(Integer id);

    ResponseResult SaveBook(Book book);

    ResponseResult UpdateBook(Book book);

    ResponseResult getBook(Integer id);

    ResponseResult getTypeByPage(String type,int pageSize,int currentPage);

    ResponseResult getNameByPage(String name,int pageSize,int currentPage);

    ResponseResult getPage(int pageSize, int currentPage);

    ResponseResult uploadBookCover(MultipartFile file, int bookId);

    /**
     * 获取所有的轮播图
     */
    ResponseResult getAllSlideShow();

    /**
     * 新增轮播图
     * @param file 轮播图图片文件
     * @param bookId 关联的书籍ID
     */
    ResponseResult saveSlideShow(MultipartFile file, int bookId);

    /**
     * 删除轮播图
     * @param slideShowId 轮播图ID
     */
    ResponseResult deleteSlideShow(int slideShowId);
}
